<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'AddFunctionPage.jsp' starting page</title>

  </head>
  
  <body>
    <h1>添加常见问题</h1>
    <form action="addaction" method="post">
    <table>
    	<tr>
    		<td>分类：</td>
    		<td>
	    		<select name="classification">
	    		<c:forEach var="item" items="${listclass }">
	    			<option value="${item.id }">${item.cname }</option>
	    		</c:forEach>
	    		</select>
    		</td>
    	</tr>
    	<tr>
    		<td>标题：</td>
    		<td><input name="title" type="text" /></td>
    	</tr>
    	<tr>
    		<td>内容：</td>
    		<td><textarea name="content"></textarea></td>
    	</tr>
    	<tr>
    		<td><button type="submit">保存</button></td>
    		<td><button>重置</button><button>放弃</button></td>
    	</tr>
    </table>
    </form>
  </body>
</html>
